<?php
class LoginForm extends sfForm
{
  public function configure()
  {
	$this->setWidgets(array(
	      'username'    => new sfWidgetFormInputText(),
	      'password'    => new sfWidgetFormInputPassword(),
	    ));
	  $this->setValidators(array(
	      'username'    => new sfValidatorString(array('required' => true),array("required"=>"Please type your username.")),
	      'password'    => new sfValidatorString(array('required' => true),array("required"=>"Please type your password.")),  
	  )); 
	
	    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);
	    $this->widgetSchema->setNameFormat('user[%s]');
	     
	   // $this->setupInheritance();
  }
}